<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<script type="text/javascript" charset="utf-8">
$.extend($.fn.validatebox.defaults.rules, {  //验证两次密码是否一致
		equals: {
			validator: function(value,param){
			return value == $(param[0]).val();
			},
			message: '两次输入的密码不一致！'
			}
		});
</script>
<div id="editForm" style="padding: 5px;overflow: hidden;width:500px;height:250px;">
	<form id="userEditForm" method="post">
		<table class="tableForm">
			<tr>
				<th style="width: 60px;">用户名</th>
				<td><input name="username" style="width: 145px;" class="easyui-validatebox" data-options="required:'true',missingMessage:'请填写用户名'" />
				</td>
				<th style="width: 60px;">用户权限</th>
				<td><input name="permission" style="width: 145px;" />
				</td>
			</tr>
			<tr>
				<th>密码</th>
				<td><input name="password" style="width: 145px;" type="password" class="easyui-validatebox" data-options="required:'true',missingMessage:'请填写登录密码'" />
				</td>
				<th>重复密码</th>
				<td><input type="password" class="easyui-validatebox" style="width: 145px;" data-options="required:'true',missingMessage:'请再次填写密码'" validType="equals['#password']"/>
				</td>
			</tr>
			<tr>
				<th style="width: 60px;">性别</th>
				<td><input name="gender"  style="width: 145px;"/>
				</td>
				<th style="width: 60px;">工作部门</th>
				<td><input name="department" style="width: 145px;" />
				</td>
			</tr>
			<tr>
				<th style="width: 60px;">Email</th>
				<td><input name="email"  style="width: 145px;"/>
				</td>
				<th style="width: 60px;">联系电话</th>
				<td><input name="phone" style="width: 145px;" />
				</td>
			</tr>
			<tr>
				<th style="width: 60px;">工作单位</th>
				<td><input name="company"  style="width: 145px;"/>
				</td>
				<th style="width: 60px;">工作地点</th>
				<td><input name="workingPlace" style="width: 145px;" />
				</td>
			</tr>
			<tr>
				<th style="width: 60px;">ID</th>
				<td><input name="id" style="width: 145px;" />
				</td>
			</tr>
			
		</table>
	</form>
</div>